package awk.designModel.factory.absfactory;

//实现工厂之颜色工厂
public class ColorFactory extends AbstractFactory{
	@Override
	public Shape getShape(String shape) {
		return null;
	}

	@Override
	public Color getColor(String color) {
		if(color == null){
			return null;
		}
		if(color.equalsIgnoreCase("Red")){
			return new Red();
		}else if (color.equalsIgnoreCase("Green")){
			return new Green();
		}
		return null;
	}
}
